package com.jic.product.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.CategoryMerchantRelation;
import com.jic.product.manage.request.CategoryMerchantRelationRequest;
import com.jic.product.manage.response.CategoryResponse;

import java.util.List;


/**
* 商家店铺类目关联表
* @author : 
* @email : 
* @since : 2020-08-14 10:33:16
* @version : v1.0.0
*/
public interface CategoryMerchantRelationService {

    long insert(CategoryMerchantRelation categoryMerchantRelation);

    long delete(Long id);

    long update(CategoryMerchantRelation categoryMerchantRelation);

    CategoryMerchantRelation queryByPrimaryKey(Long id);

    List<CategoryMerchantRelation> query(CategoryMerchantRelation categoryMerchantRelation);

    PageResult<CategoryMerchantRelation> queryPage(CategoryMerchantRelation categoryMerchantRelation, Page pageQuery);


    RestResult<List<CategoryResponse>>  queryStoreSecondCategory(Long deptId);

    RestResult<List<CategoryResponse>>  queryStoreSecondSonCategory(CategoryMerchantRelationRequest categoryMerchantRelationRequest);

}